// 04jyhs/EvaluateManage/EvaluateManageDetail/EvaluateManageDetail.js
var co = require("../../../resource/js/common.js")
var _this,_data
Page({
  data: {
     flag: 0,
     orderId:null,
     evaluateContent:[]
  },
  onLoad: function (opt) {
   _this=this
   _data=_this.data
   var orderid = JSON.parse(opt.orderid)
   _this.setData({
      orderId: orderid.Order_ID
   }) 
   _this.getevaluateContent()
  },
  //获取评价内容
  getevaluateContent() {
     co.getJyhsApi("order/Order/getOrderDetails",{
        Order_ID:_data.orderId
     },function(res){
        if(res.code  == 0){
           _this.setData({
              evaluateContent:res.data,
              flag: res.data.Comment_Info.Comment_Star
           })
        }
     })
  },
})